package com.szcinda.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface CarrierRepository extends JpaRepository<Carrier, String>, JpaSpecificationExecutor<Carrier> {
    Carrier findById(String id);

    Carrier findByOrganizationIdAndName(String orgId, String name);

    List<Carrier> findByOrganizationIdIn(List<String> orgIds);

    List<Carrier> findByOrganizationId(String orgId);
}
